package fr.insa.bouton;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

public class BoutonEfface extends JButton implements ActionListener
{
  JPanel ardoise;

  public BoutonEfface(String nom, JPanel ardoise)
    {
      super(nom);
      this.ardoise = ardoise;
      addActionListener(this);
    }

  public void actionPerformed(ActionEvent e)
    {
      ardoise.repaint();
    }
}